package com.shilin.watchsystem.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author jobob
 * @since 2020-08-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Worder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String orderNumber;

    private Long productId;//产品id

    private String buyerIp;//ip

    private String name; //客户名称

    private String phone; //联系方式

    private String email; //邮箱

    private String address; //收货地址

    private String leaveMsg; //留言

    private String attribute; //购买属性

    private Integer number; //订购数量

    private Integer status; //状态

    private BigDecimal price; //价格

    private String logisticsCompanies; //物流公司

    private String waybillNum; //运单号

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createDtm;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateDtm;


    @TableLogic
    private Integer del;


}
